package com.nowcoder.community.service;

import com.nowcoder.community.entity.LoginTicket;
import com.nowcoder.community.entity.User;

import java.util.Map;

/**
 * @author 夏智力
 * @FileName UserService
 * @date 2021/6/2 21:34
 * @Software: IntelliJ IDEA
 */
public interface UserService {

    User findUserById(int id);

    Map<String ,Object> register(User user);

    int activation(int userId, String code);

    Map<String, Object> login(String username, String password, int expiredSeconds);

    LoginTicket findLoginTicket(String ticket);

    void logout(String ticket);

    int updateHeader(int userId, String headerUrl);

    int updatePassword(int id, String password);
}
